//
//  NewsService.h
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/8.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NewsService : NSObject

/**
 获取首页资讯
 */
+ (void)fetchNewsDataWithResult:(void(^)(id responseObj))callback;


/**
 获取资讯列表

 @param page 分页
 @param callback call back
 */
+ (void)fetchNewsListWithPage:(NSInteger)page callback:(void(^)(id resObj))callback;

/**
 获取资讯详情
 
 @param article_id 资讯id
 @param callback 请求完成回调
 */
+ (void)fetchNewsDetailWithId:(NSString *)article_id callback:(void(^)(ResponseModel *response))callback;


/**
 用户点赞
 */
+ (void)likeHandleWithMsgId:(NSString *)msg_id andNewsId:(NSString *)news_id Completion:(void(^)(BOOL success))complete;


/**
 用户评论

 @param msg 评论内容
 @param news_id 新闻id
 @param complete call back
 */
+ (void)addCommentWithMsg:(NSString *)msg andNewsId:(NSString *)news_id Completion:(void(^)(BOOL success))complete;

@end

NS_ASSUME_NONNULL_END
